/* Layout */
import Layout from '@/layout';
export const academyMngRoutes = {
  path: '/academyMng',
  component: Layout,
  redirect: '/academyMng/departmentList',
  name: 'academyMng',
  meta: { title: '学院管理', icon: 'el-icon-school' },
  alwaysShow: true,
  children: [
    {
      path: 'departmentList',
      name: 'departmentList',
      component: () => import('@/views/Custom/AcademyMng/DepartmentMng'),
      meta: { title: '院系列表', icon: 'el-icon-tickets' },
    },
    {
      path: 'majorList',
      name: 'majorList',
      component: () => import('@/views/Custom/AcademyMng/MajorMng'),
      meta: { title: '专业列表', icon: 'el-icon-collection' },
      props({ params: { departmentId } }) {
        return { departmentId };
      },
    },
    {
      path: 'classroomList',
      name: 'classroomList',
      component: () => import('@/views/Custom/AcademyMng/ClassroomMng'),
      meta: { title: '班级列表', icon: 'el-icon-collection' },
    },
  ],
};
